#pragma once
#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
#include<stdbool.h>
typedef int HeapType;
 typedef struct Heap {

	 HeapType* a;
	 int capacity;
	 int size;

}Heap;
 void Inite(Heap* p);
 void Push(Heap* p, HeapType x);
 void Pop(Heap* p);
 bool Empty(Heap* p);
 HeapType Top(Heap* p);
 void Print(Heap* p);
 void Destry(Heap* p);
 void Swap(HeapType* a, HeapType* b);
 void AdjustUp(HeapType* a,int child);
 void AdjustDown(void AdjustDown(HeapType* a, int parent, int n));


